﻿function SiteValues() {
    var _data = "";
    $.ajax({
        type: "POST",
        async: false,
        contentType: "application/json; charset=utf-8",
        //   data: "{ CustomerID: 'ttt'}",
        url: "../Service/GetSiteDetailService.ashx",
        dataType: "json",
        success: function (data) {
            _data = data;
        }
    });
    return _data;
}
function ProjectValues() {
    var _data = "";
    $.ajax({
        type: "POST",
        async: false,
        contentType: "application/json; charset=utf-8",
        //   data: "{ CustomerID: 'ttt'}",
        url: "../Service/GetProjectDetailService.ashx",
        dataType: "json",
        success: function (data) {
            _data = data;
        }
    });
    return _data;
}
function EmpValues() {
    var _data = "";
    $.ajax({
        type: "POST",
        async: false,
        contentType: "application/json; charset=utf-8",
        //   data: "{ CustomerID: 'ttt'}",
        url: "../Service/GetEmpDetailService.ashx",
        dataType: "json",
        success: function (data) {
            _data = data;
        }
    });
    return _data;
}
function ProjectNameBySite(idSite) {
    var _data = "";
    $.ajax({
        type: "POST",
        async: false,
        contentType: "application/json; charset=utf-8",
    //    data: "{ idSite: " + idSite + "}",
        url: "../Service/GetProjectNameBySite.ashx?idSite=" + idSite,
        dataType: "json",
        success: function (data) {
            _data = data;
        }
    });
    return _data;
}

function LeaveValues() {
    var _data = "";
    $.ajax({
        type: "POST",
        async: false,
        contentType: "application/json; charset=utf-8",
        //    data: "{ idSite: " + idSite + "}",
        url: "../Service/GetLeaveService.ashx",
        dataType: "json",
        success: function (data) {
            _data = data;
        }
    });
    return _data;
}